package db8;

public class TestStudent {
    public static void main(String[] args) {
        Student[] s=new Student[]{
                new English(1,"li","女",18,98,88,89),
                new Computer(2,"m","男",20,88,89,90,90),
                new Literature(3,"k","女",21,78,79,70,80)
        };
        for (int i = 0; i < s.length; i++) {
            System.out.println();
            System.out.println("学号"+s[i].no+"姓名"+s[i].name+"性别"+s[i].sex+"年龄"+s[i].age+"总成绩"+s[i].getGrade());
        }
    }
}
